package com.yunhoo.checkFlow.factory.impl;

import com.ibatis.sqlmap.client.SqlMapClient;
import com.yunhoo.sys.util.common.LoginParam;
import java.sql.SQLException;
import java.util.HashMap;
import java.util.Map;

public class ContractCheck extends BaseCheck {

    public ContractCheck(String billType, String checkerId, String checkerRole) {
        super(billType, checkerId, checkerRole);
    }

    @Override
    void updateFlowMark(SqlMapClient client, String billNumber, String flowMark) throws SQLException {
        Map map = new HashMap();
        map.put("orgCode", LoginParam.getOrg().getCode());
        map.put("number", billNumber);
        map.put("flowMark", flowMark);
        client.update("contractnamespace.updateFlowMark", map);
    }
}
